<?php 
defined('IN_TS') or die('Access Denied.');

function weixin_login_html(){
	echo ' <a href="'.SITE_URL.'index.php?app=pubs&ac=plugin&plugin=weixin&in=login"><img src="'.SITE_URL.'plugins/pubs/weixin/images/icon28_wx_button.png" style="width:100%;height:auto; border-radius: 6px"></a> ';
}

function home_login_weixin(){
	echo '<a href="'.SITE_URL.'index.php?app=pubs&ac=plugin&plugin=weixin&in=login"><img align="absmiddle" src="'.SITE_URL.'plugins/pubs/weixin/images/icon16_wx_logo.png" alt="微信登录" /></a> ';
}

function weixin_update($content){

}

addAction('home_login', 'home_login_weixin');

addAction('user_login_footer', 'weixin_login_html');
addAction('user_register_footer', 'weixin_login_html');
addAction('weixin_share', 'weixin_update');